/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mantechhelpdesk.entity;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author DinhThang
 */
public class Answers implements Cloneable, Serializable {

    /**
     * Persistent Instance variables. This data is directly mapped to the
     * columns of database table.
     */
    private int AnswerID;
    private int ComplaintID;
    private String AnswerContent;
    private Date CreateTime;
    private boolean IsEnable;

    /**
     * Constructors. DaoGen generates two constructors by default. The first one
     * takes no arguments and provides the most simple way to create object
     * instance. The another one takes one argument, which is the primary key of
     * the corresponding table.
     */
    public Answers() {
    }

    public Answers(int AnswerIDIn) {

        this.AnswerID = AnswerIDIn;

    }

    /**
     * Get- and Set-methods for persistent variables. The default behaviour does
     * not make any checks against malformed data, so these might require some
     * manual additions.
     */
    public int getAnswerID() {
        return this.AnswerID;
    }

    public void setAnswerID(int AnswerIDIn) {
        this.AnswerID = AnswerIDIn;
    }

    public int getComplaintID() {
        return this.ComplaintID;
    }

    public void setComplaintID(int ComplaintIDIn) {
        this.ComplaintID = ComplaintIDIn;
    }

    public String getAnswerContent() {
        return this.AnswerContent;
    }

    public void setAnswerContent(String AnswerContentIn) {
        this.AnswerContent = AnswerContentIn;
    }

    public Date getCreateTime() {
        return this.CreateTime;
    }

    public void setCreateTime(Date CreateTimeIn) {
        this.CreateTime = CreateTimeIn;
    }

    public boolean getIsEnable() {
        return this.IsEnable;
    }

    public void setIsEnable(boolean IsEnableIn) {
        this.IsEnable = IsEnableIn;
    }

    /**
     * setAll allows to set all persistent variables in one method call. This is
     * useful, when all data is available and it is needed to set the initial
     * state of this object. Note that this method will directly modify instance
     * variales, without going trough the individual set-methods.
     */
    public void setAll(int AnswerIDIn,
            int ComplaintIDIn,
            String AnswerContentIn,
            Date CreateTimeIn,
            boolean IsEnableIn) {
        this.AnswerID = AnswerIDIn;
        this.ComplaintID = ComplaintIDIn;
        this.AnswerContent = AnswerContentIn;
        this.CreateTime = CreateTimeIn;
        this.IsEnable = IsEnableIn;
    }

    public Answers(int AnswerIDIn,
            int ComplaintIDIn,
            String AnswerContentIn,
            Date CreateTimeIn,
            boolean IsEnableIn) {
        this.AnswerID = AnswerIDIn;
        this.ComplaintID = ComplaintIDIn;
        this.AnswerContent = AnswerContentIn;
        this.CreateTime = CreateTimeIn;
        this.IsEnable = IsEnableIn;
    }
}
